package com.yc.cloud.sys.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yc.cloud.common.model.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @author 杨智杰
 * @since 2021/8/17 15:14
 */
@Data
@ApiModel("部门表")
@Accessors(chain = true)
@TableName("sys_department")
public class SysDepartment extends BaseEntity {

    @TableField("pid")
    @ApiModelProperty(value = "上级部门Id")
    private Long pid;

    @TableField("name")
    @ApiModelProperty(value = "部门名")
    private String name;

    @TableField("link_man")
    @ApiModelProperty(value = "联系人")
    private String linkMan;

    @TableField("link_phone")
    @ApiModelProperty(value = "联系电话")
    private String linkPhone;

    @TableField("level")
    @ApiModelProperty(value = "部门等级")
    private Integer level;

    @TableField("status")
    @ApiModelProperty(value = "当前状态")
    private Integer status;

    @TableField("is_default")
    @ApiModelProperty(value = "默认部门")
    private Boolean isDefault;

}
